add permmision and layout