saving works for creating new objects, going back and forth from main to counter activity