Front end: maxDistance search added to dashboard jade