Moved frontend controller to sub generator