Adding the type field to views and forms