added spinner, success msg and fixed ui