fixed get redirect and made table work