fix typos in controller
fix onload doesn't bind correctly