Registering index in setuphandlers