Changed viewMode function to detect new view modes on mandarake site