Addedd method at click event.