- implemented indexhandler