Refactor select book and open post detail to pass item instead of index