Cleaned sidebar's code