added home and restart to end