fixed bug resetting content after saving changes when navigating away and back