finished adding the code to update all dimensions according to window size and on window re-size.