added tabindex
added template code for obtain methods