retrieve selected project directory and store into global context