Remove unused tools and widgets. Make sure that the add layer dialog
does not expand beyond the value of window.innerHeight