Updated all of the view functions to accept IDs; reset all event handlers as properties of the target elements