update layout for show page