Properly hide elements when they fade out

When elements are faded out they now have their display set to none.