Input values now saved when main activity is stopped