Adding the controller file to use the MVC design pattern

Signed-off-by: Benoit Brayer <brayer.benoit@gmail.com>