small front-end fixes, also fixed array issue in controller