Added functionality to step forward/backwards through a list of fluidboxes, also converted logic to add closeTrigger into a reusable function