Separate ui selectors from ui $elements and add refresh method