jquery dialog working (sort of)