Add redirect function to global functions
Use global function for redirect
Skeleton for downloads