Save animations

Added in save animations on the save button as well as a slight clean
up of code in the main controller