Fix #14 #15 #16 #18 menu api as part of plugin api