added a "clear" function to erase all labels and fields