binning functionality added plus restore button