before masterview to viewcontroller