added clear button stuff