added double click feature, changed graph layout