adds before_action to comments controller