Refactored view initialisation.