added save menu option
added save function