reset lines and columns in GUI version