Adds click handler for modal dissmiss buttons