clearing elements before input