multi monitor now works

fixed multiple monitor support, simplified code