Add application management

Fix some of the js format errors.