Checking saving state implemented

Please review changes and merge if the issue seems resolved
https://redmine.dev.cyfronet.pl/issues/3294
Prefer single-quoted strings when you don't need string interpolation or special symbols.