added auto layout to detail page