added cross domain support and improve the ui