Linking button to view controller

I am working on a app where the menu slides out from the right side of the screen. I am trying to figure out how to make it where when i press one of the buttons on the menu, it replaces the catagory that was currently present with a different catagory without opening up a whole new section. Does that make any sense?