changed view to master detail