added a method in form for proper url pattern