added functionality for inputting a custom title