Working to nag bar and table view