Add style and row height to rootelement
Max date added
Scroll logic was not working when cell was at the end of a tableview