A draft of modal window, canvas scaling, fixes #1