adding security and layout