formatted orders page but orders controller error