Added a tab control to the mainpage with visibility in model