implemented menu bar with save option