Changed .show and .hide to .css("visibility") calls to fix odd layout issue of the #button-row.  Changed <a> to <button> tags and updated popup.css with % widths.