initializing elements in MainActivity