edited script for new courses views