adding cursor change and clear button