locations model and controller implmented