refactored videos controller