Added UI elements in code and connected