fixing login box, facebook box global variable, config variables in controller