add logic to videos controller