optimized uiTabSection function.

added if statement to prevent a function from running if the clicked
tab is already active.
Resident list page fixes