add user and button functionality