fix model bugs
fix getattr issue
simplify time handling in view
add calc for end of time interval
more chart bits
text