Refactor video loading spinner into template