moving button functionality code inside of controller instead of in-between script files.