Fixed some bugs and add redirects after actions