-add and edit page
-fixed bug app.coffee