Move all necessary initialisation to newview()