fixed styling issues in MainActivity and warnings