edited ajax in categories