add functionality for show and hide charts