spliting the app into partials, controllers and templates