added clear action button and implemented clearText