Added addCancelButton overload