made graph disapear when no pins selected