Sarà perché hai tolto -> $('#main').html(resp);