added transaction in add course

some other minor fixes