It might be worth it to factor this out at some point. With the exception of the element id and icon name, it's nearly identical to the function in the saved search javascript.