Dialog boxes and php echo script for handling project json data