factor out viewmanagers