fix repeating mainactivity