added method for text click, have not written code
see below