added index view and method to likes and changed the association of user and posts from has_many likes to has_many through raltionship