added sidebar code