fixed issue where only last menu was being shown