fixing loading issue and firefox dropdown layout issue, also deleting unused javascript