use "if" in layout to load extra stylesheet and javascript for edit mode