implemented the new beta interface

Implemented the beta interface as indexbeta and mainbeta, while the
scripts file is completely changed for the new interface.