added flip right and flip left transitions