clean MainActivity
clean up resources