added editing functions to the video admin directive