added more functionality to features and debugged the favorites toggle