Separated out navigation bar into separate view and include it where necessary.