Added support for overridden navbar and toolbar classes without the need for an overridden navigationview class.