more helper stuff to handle clicks and show/hide actions