Mixin for views to make them show and hide