small changes

- optimized png images to improve load time
- reordered navigation nested functions to fix bug in which new page
started to load before previous page finished fading out.