created mainjs for teacher