added functinality for printing the footer and toggling of the staging keys