change js behavior
such that button is default shown for closing rather than vice-versa