Added initilization + some layout code to DeviceView