Added function pointers to ViewFunction and ControllerFunction classes. Working on dynamic components.