Changed the behaviour of the hide preview button to only display when there is a preview box to hide.