Shortened the code with same functionality @ TitleController.java