linking algorithm withbutton
linked algorithm to admin page