Moved setting up hash into initializer to optimize loading so it is not loading every time the button is pushed.