rearranging list and including more views in the redirect middleware