removed the make_active function and replaced it with a check for request.path