fixes for ajax content loading