widget session : refactoring code, add edit page