fixing jquery ui images, some form refactoring