fixed a bug where activity was showing when you click new activity