show courses buy button handling

if user has bought courses, the buy button for those is disabled