fixed scaling on retina display and some deprecated warnings