code re-organize for forms on ticket details page.