first part of favorites functionality, next is localstorage