Wait for ajax on every click