Made mark-as-completed button and fix recommendation-ids function