added ajax for detail view