behaviour similar to ngIf