jquery-ui tables and moved div into the template and out of the layout