Fixing popup, restyling popup, fixing double ajax requests, errors displaying