added ajax to keys functionality