Add a data service and change to calculate sidebar width