Added posts controller and updated index and show page