fixed index and styling
fixed controller to show array