Add flipping behavior