added startActivity function