make MainWindow persistency non-binary

Change-Id: Idab5b2fde8d21f7661eb6dcd9bffcffa63b638dd