changing the layout and working on historical data for user