Added option to force displaying of a cancel button.