Implemnted pie graph on the main page