refactor helper functions into seperate module, start on overview charts