added ability to hide cancel and submit buttons. resolves #15