fixed errors if no menu created
fixed menu not saving