1030366: Hidden toolbar is not really hidden when editing contact, r=yzen

Same here lines 124 to 136 should be a separate function.