add menu manager and fixed some bugs