add modal button for toolbar and sideframe button

fixes #2817
fixes #2819
fixes #2816