remove class to prevent ajax call if not needed