#43: updated css ; moved index ; tweaked event code