working JQ plugin for handling menus, panels etc