U device page

As I said earlier, make this part of code more readable.