Added UI animation to form show/hide, removed direct DOM manipulation