clearing Input when finished