refactoring and cleanup, fixed firefox bugs
IE fixes
styling