created index view, created posts controller, added to routes