build catalog view and detail view