successfully implemented FrameManager. commit before comments