UI Enabled not working?

So, I am trying to make a pause menu by overlaying an image over the game (which would have a half transparent black background so you know its paused), and the image is the parent of all the buttons and stuff. The menu button I am using is linked to the PauseManager that I created, which has the script below attached to it. The only problem is that the .enabled scripts aren’t working. I am getting no errors, and the Debug.Log("Switch!"); message is appearing in the console. Also, when you click the button, the game freezes up the engine for a second. Does anyone know how or what this is? Thanks!

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Pause : MonoBehaviour {

	public Image menu;
	public Button menuBtn;
	public bool isMenu;
	public void menuSwitch() {
		menu.enabled = true;
		menuBtn.enabled = false;


Are you filling the image and button in the editor? Take into account that enabled don’t activate the game object instead it enables the script