added some jquery functionality