fix unnecessary ajax calls (try #1)