change get sidebar info to ajax