changed layout and added new directive