minor fixes on locations controller