Added half of the toggle function.
fixed where links were displayed when displaying data, and added 3 event listeners.