Added escape single quote and changed tab index to move horizontally