added redirect and reload