create add board function