Added if statement to check if menu has changed

it's a bit sticky at the moment!!