moved ui code for tabs from form to user controls