use core hide_menu func and a few other small updates