adding action listener on client