Added flipbox and corrected ajax