WebUI: Fix some layout problems & add extra logs to UI JS code.

Signed-off-by: Peter Tworek <tworaz666@gmail.com>