added manage menu and save function