Added flip effect and fixed race condition issues with flip