adding before_actions for votes and comments

main is definitely not supposed to encapsulate body