First draft

Mostly working, but issues with select in iphone and edit td in windows
mobile