Clearing input when reopening