try to optimize edit theme form (bug 855619)