source slmenu functions