remove modal flip code