almost finished with energy api

- just need to update and hide/show ui