parsing model index from url attribute