Implements controller functionality for creating new url