added layout and class for viewing single device