ajax working, but layout is not right