added settings page and worked on redirects