added some jquery magic