changed transform function to allow 2 graphs on same page, and fixed right and left dots to the sides