Addition of pre_show function call when displaying menu