putting creating quote logic into viewmodel