changed UI and save map functions