Add lictener for onclick.