some logic tweeks for web design