Fixing ajax for userhome and event pages