added working register button