update functions for popularity, general logic assuming all functions, text box entries
merge