implementing result sidebar