Remove hard coded page width and replace with dynamic one