changed action when clear is clicked