main page ajax requests work