Reworked function.rb and shows_controller.rb to use new addorupdate function