restore focused element when closing a modal window
wip gui builder