added createframe method to controller