Adding controller which handles application