added ajax search, plan and enhanced user handling