Only a single controller would have ever been required, so explicitly referencing localhost makes more sense. Also, remove a duplicate 'when' attribute.