Added functionality to the "Save"-button.