refactoring views
until 11.1.4 Followed users of rails tutorial