adding some more jquery ui code i picked up from codecademy