finished dashboard load back-end and updated add pi for the api