Added check for wether or not the activated() function exists on the viewModel