Added the possibility to close the project-details by clicking outside