Added UI script to index
Added reset code. Unstable