working onClick for messages