fixed an if-end problem on the pins show page