Fixed some of the problems in the toolbox context menu. Set two menues, one for general and one for item selection. (Issue #42)