open a UI panel

I made a pause menu, how do i open it when i pressing the pause button in a game? unity 4.6 UI system

public void onPauseButtonPressed()
{
//things you wanna do it before pausing game
pauseUIPanel.setActive(true);
}