split inmenu into separate file