regioned some code. tried to move service to ViewModel but didnt work so reverted that.