event menu function to inc file