fixes for activities and viewActivity