add anchor button
clean up code