bad table behaviour when moving from mater to detail view