Refactor index & lastOrders & layout