Changed the delegate methods to changeFrame