Changed way to get class for intent