graphics and drawing moved from action to unit class