fixed bug concerning detail and location view