Fix some bugs with the logic of showing the embedded stuff. Change css that was too generic. Fix sql bug