This should be changed to:
```scala
case Some(p: Int) => ...
```

Currently it can fail at runtime - the compiler warns you about this with the message:
```
[warn] docview/modules/core/app/models/GuidesPage.scala:143: non-variable type argument Int in type pattern Option[Int] is unchecked since it is eliminated by erasure
[warn]         case p:Option[Int] => { """
[warn]                ^
```