Dashboard ajax fix