maxwidth button implemented