added method to return to main view controller
setting the history amount in both view