fixed order of doing things when preparing a view