Increase code reuse when init ui