clean code copy past in mainactivity