Modified the controller to allow posting with query parameters