Simplified application:{hide,show} functions; part of #215.