Added save action to button