add base logic for close project