Added clear input button
Added show caret after input update