removing html button and event code attached to it