GUI: function for closing all project tabs

 * selcted -> selected
 * when a project is closed, all tabs of it are closed also