code refactoring and add overlay effect for layouts
Was fixed bugs with footer