ajax working for levels