Cleaned UIElements' code