Fixed bugs in deleting projects, code formatting