Added logic to sqView to keep script files in order