Pass pgn to the template
Fixed btn names & pgn test