adding before_actions for votes and comments