fixed favorites .push() for directory template
further progress on search
fixed favorites to remove from array
favorites, working further on search issue, basically an update here