split templates into separate file to simplify future imporovements and app development;
more templates isolation; fix controller; fix toJSON model methods;
abstract settings view;