ajax with sidebar working