making workout form work for both new and edit