Added the ability to pin and unpin the preview control