change to include controller for types and type main page