attach event to just main text