Implemented 'Pin and unpin favorites' functions