fixing some div stuff and ajaxing the queries