Extracted common web logic and started implementing server ui