check to see if stylesheet is loaded before loading

Fixes #2