Making dropdown stay open and refreshing after edits