adding a publicly accessible hideModal() convenience method