created the model show view and edit view