init function, registration buttons