Fixed routing and permission bugs
Fixed routing and permission bugs