added main activity visibility