position table properly on page load and resize