Add before_action to dashboards controller