add type field to trail model
Change behavior of upload view and add dummy search mask in list view