add base model and flash message