Fixed non-working hideCancelButton property