fixing minor jquery issues