Add some funktions for the methods in PreviewController