added jquery to show/hide buttons