replaced the view with container in the router
passed the logic of the beginning to the app to the router (in main file)