add ajax to show charts by year, month and day + several fixes