updates to add flip in the control