fixes to showing/hiding correct buttons