Added javascript code. Removed next button. added loader