move projDelete function into model