Bugfix with onclick

stopping propagation in the sub menus so that the menus doesn't
close.