permissions bug edited and redirection done