Sri Lanka seeks way forward after president quits