setting up pa-viewmodel