flatten views directory