Feature/#457 remember window state