implement jquery functionality