refactored code, ceparate AVPlayer impmlementation from the GUI