remove layout from _show function