Issues solved: #65 #68, minimize/maximize/restore fixes