Added functionality to widgets and started on chart