fixes typo on typing migration
WIP adds views for type index and show
adds rest of controller actions and views for type model and some styling