modify main actvitity