cancel button + maxwidth bugfix