trying to pass array value from model to view