attach options to objects and fix html/bugs