fixing bugs, made IndexComponent a project component