setting activity and some other stuff