added main view and table view