modified Main Acitivity