Added framework for passing array to controller