Moved save logic for focused view to another module (datastore-local)