Added pages and navigation controller