I'm having trouble coding a button to go to the previous page. I was able to do it to go to the next page thinking if I did the same thing but changed it a bit it would work in reverse. Unfortunately, I come up with a lot of errors I can't resolve because it won't allow me to use the release function.
This is this the code that helps it to work going to the next page fine:

```
#import "ViewController.h"

@implementation ViewController

-(IBAction)btnClicked:(id) sender
{
    //add the view of the view controller to the current View---
    if (menuView==nil) {
        menuView = 
        [[MenuView alloc] initWithNibName:@"MenuView"
                                   bundle:nil];
    }
    [self.view addSubview:menuView.view];

}
-(void)dealloc {
 [menuView release];
 [super dealloc];
}

```

How do I do it so that a back button will go to the previous page though.