chaned reload code for routes