Improve menu-handling

Made some adjustments to the "menu_draw_row_callback",
"menu_select_callback", and "menu_get_num_rows_callback" functions.