Layout manager for web apps