working version with texture widget