Fixed setLocation and renamed getLocationInView