added saveData on home command use