add if else for video controller index method