tried to add menu ui, but encountered some bugs, need to rework from ground up