added iOS7 hack for adding the sub view and changed the pop animation