fixed mongo db bug, fixed javascript error in button_actions