add markup and css for flip