jquery UI and other general fixes