code clean up and facebook button