When you're done, do main.close (close main element) then main.open()