added sidebar related code