changed order type in creation , also added orderd at column and formatting for dates