add error layout and sidebar js navigation