manke angular ui toggleable and fix old url redirect rules