create separate module for communication with server
make functions public
create separate module for video management