refactor video page