Prepared UI so only dimension calculation algorithm is missing