collect milestone at the time user passed course

merged with tip and made changes to comply with new api

removed obsolete items