implemented main functionality, now working on the add/remove button