flip page working with potential bugs