Added auto redirecting after uploading files