more style fixes and adding remote check from DOM