cleaning up some extra code and adding jquery ui