added jquery funcitonality