Preparing sidebar