added more methods to controller
added parameterization for title string