fix some issues creating a new app and retrieving an empty app
lots of work on making front-end work