added display:none on init and transition hooks