Added resize and click events handlers to elements.