Better tablet behavior

Multiple other misc fixes