Fix #1714

Fix: 
1. Added "style="display:none;" to the box so when the partial (_key_display.html.erb) is rendered via ajax call, the box is hidden. 
2. change jquery click() function to on() function so that the event listener still bind with new element.

Test: 
1. Manual Test
2. bundle exec rake test
3.bundle exec rspec