changes to app controller, code blocks and functions list