Return Path in templates gallery

Setup the functionality  of return path